package cc.langk.web.util;

import cc.langk.core.util.MD5;

import java.io.UnsupportedEncodingException;

public class PasswdEncryptoUtil {

    public static String passwdEncrypto(String passwd){
        try {
            return MD5.getMessageDigest(passwd.getBytes("UTF-8"));
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
            return null;
        }
    }

}
